<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/10/10
  Time: 11:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form enctype="multipart/form-data" method="post" action="/file/profilePhotoUrl">
    文件:<input type="file" name="file"/>
    姓名:<input type="text" name="name"/>
    <input type="submit" value="上传"/>
</form>
<img src="/09440667-326d-4269-885d-299558acc332.jpg" alt="">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.4/jquery.js"></script>
登录

<script>
    $.ajax({
        url:"userLogin",
        type:"POST",
        data:{
          username:"allan",
          pas:123
        },
        success:function (data) {
            console.log(data)
        }
    })
</script>

</body>
</html>
